package org.microservice.common.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
import org.microservice.common.base.AbstractAuditingEntity;

import java.io.Serializable;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: 齐丹枫
 * Date: 2018/6/20
 * Time: 15:08
 * To change this template use File | Settings | File Templates.
 * Description:
 */
@Data
@TableName("sys_menu")
public class MenuVo extends AbstractAuditingEntity implements Serializable{


    private static final long serialVersionUID = 1L;

    /**
     * 菜单ID
     */
    private Integer id;


    /**
     * 地址
     */
    private String path;

    /**
     * 组件地址
     */
    private String component;

    /**
     * 菜单名称
     */
    private String name;

    /**
     * 授权(多个用逗号分隔，如：user:list,user:create)
     */
    private String perms;

    /**
     * 菜单图标
     */
    private String icon;

    private boolean disabled;

    private boolean enabledCache;

    private int type;
    private int parentId;

    private String orderNum;


    private String redirect;
    @TableField(exist=false)
    private List<MenuVo> children;
}
